/*
 * @Description:
 * @Autor: 赵子惠
 * @Date: 2021-09-06 14:50:54
 * @LastEditors: 商晓彬
 * @LastEditTime: 2021-09-09 15:37:36
 */
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { AppCommonModule } from "@app/shared/common/app-common.module";
import { UtilsModule } from "@shared/utils/utils.module";
import { CountoModule } from "angular2-counto";
import {
    ModalModule,
    TabsModule,
    TooltipModule,
    BsDropdownModule,
    PopoverModule,
} from "ngx-bootstrap";
import {
    AutoCompleteModule,
    CardModule,
    ContextMenuModule,
    DragDropModule,
    EditorModule,
    FileUploadModule,
    InputMaskModule,
    MultiSelectModule,
    PaginatorModule,
    TabViewModule,
    CalendarModule,
    RadioButtonModule,
    TreeTableModule
} from 'primeng/primeng';
import { NgxChartsModule } from "@swimlane/ngx-charts";
import { TableModule } from "primeng/table";
import { TreeModule } from "primeng/tree";
import {
    BsDatepickerModule,
    BsDatepickerConfig,
    BsDaterangepickerConfig,
    BsLocaleService,
} from "ngx-bootstrap/datepicker";
import { NgxBootstrapDatePickerConfigService } from "assets/ngx-bootstrap/ngx-bootstrap-datepicker-config.service";
import { LightboxModule } from "primeng/lightbox";
import { AdminModule } from "../admin/admin.module";
import { ToggleButtonModule } from "primeng/togglebutton";
import { ButtonModule } from "primeng/button";
import { NestingRoutingModule } from "./nesting-routing.module";
import { BomManangentComponent } from "./bom-manangent/bom-manangent.component";
import { ResumeComponent } from './bom-manangent/resume/resume.component';
import { DropdownModule } from 'primeng/dropdown';
import { BomLookComponent } from './bom-manangent/bom-look/bom-look.component';
import { SupportingAnalysisComponent } from './supporting-analysis/supporting-analysis.component';

import { CompleteSetComponent } from './complete-set/complete-set.component';
import { PrintComponent } from './print/print.component';
import { QRCodeModule } from "angular2-qrcode";
import { DialogModule } from 'primeng/dialog';
import { GoPrintComponent } from './print/go-print/go-print.component';
import { ProcessMatchingComponent } from './process-matching/process-matching.component';
@NgModule({

    declarations: [BomManangentComponent, CompleteSetComponent, SupportingAnalysisComponent, ResumeComponent, BomLookComponent, PrintComponent, GoPrintComponent, ProcessMatchingComponent],

    providers: [
        {
            provide: BsDatepickerConfig,
            useFactory: NgxBootstrapDatePickerConfigService.getDatepickerConfig,
        },
        {
            provide: BsDaterangepickerConfig,
            useFactory:
                NgxBootstrapDatePickerConfigService.getDaterangepickerConfig,
        },
        {
            provide: BsLocaleService,
            useFactory: NgxBootstrapDatePickerConfigService.getDatepickerLocale,
        },
    ],
    imports: [
        DialogModule,
        QRCodeModule,
        CommonModule,
        NestingRoutingModule,
        FormsModule,
        ReactiveFormsModule,
        AppCommonModule,
        UtilsModule,
        CountoModule,
        ModalModule,
        TabsModule,
        BsDropdownModule,
        TooltipModule,
        PopoverModule,
        NgxChartsModule,
        ButtonModule,
        TableModule,
        TreeModule,
        BsDatepickerModule,
        LightboxModule,
        AdminModule,
        ToggleButtonModule,
        DropdownModule,
        PaginatorModule,
        CalendarModule,
        RadioButtonModule,
        MultiSelectModule,
        TreeTableModule,

    ],
})
export class NestingModule { }
